package ${project.packageName}.${project.moduleName}.infrastructure.dal.model;

import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


/**
 * ${tableStructure.tableComment}
 *
 * @author ${developer.author}
 * @date ${developer.datetime}
 */
@Table(name = "${tableStructure.tableName}")
public class ${tableStructure.classNameUppercase}Model implements Serializable {

<#list tableStructure.tableFields as x>
    /**
     * ${x.fieldComment!''}
     */
    <#if x.primaryKey>
    @TableId
    </#if>
    @Column(name = "${x.fieldName}")
    private ${x.attrType} ${x.attrName};
</#list>


<#list tableStructure.tableFields as x>
    public ${x.attrType} get${x.attrNameUppercase}() {
        return ${x.attrName};
    }

    public void set${x.attrNameUppercase}(${x.attrType}  ${x.attrName}) {
        this.${x.attrName} = ${x.attrName};
    }
</#list>

}
